package com.jiezhuo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("iot_video_info")
public class IotVideoInfo implements Serializable {

    private Integer id;

    private String name;

    private Integer sceneId;

    private String appName;

    private Integer status;

    private Integer imageId;

    private Integer deleteFlag;

    private Integer videoType;

    private Integer seq;

    private Integer relateId;

    private String rtmpUrlHigh;

    private String rtmpUrlCommon;

    private String hlsUrl;

    private String deviceSerial;

    private String validateCode;

    private Integer cameraType;

    private String username;

    private String password;

    private String ip;

    private String port;

    private String codectype;

    private String channel;

    private String subtype;

    private Integer aid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date atime;

    private Integer mid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date mtime;

}
